package com.coocaa.aries.dashboard;

import com.coocaa.aries.jmeter.util.FileUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration;
import org.springframework.boot.autoconfigure.web.servlet.MultipartAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author bijiahao
 * @description
 * @date 2019/12/31 11:34
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class,
        MongoAutoConfiguration.class, MongoDataAutoConfiguration.class, QuartzAutoConfiguration.class, MultipartAutoConfiguration.class})
@ComponentScan(basePackages = {"com.coocaa.aries.codegen", "com.coocaa.aries.core",
        "com.coocaa.aries.jmeter", "com.coocaa.aries.dashboard"
})
public class AriesDashboardApplication {
    public static void main(String[] args) {
        SpringApplication.run(AriesDashboardApplication.class, args);
        //SpringBoot打包后，Jar包内配置文件访问问题
        FileUtil.copyFile("/cmd/html2Pdf.js");
        FileUtil.copyFile("/jmx/MyTestPlan.jmx.ftl");
    }


}
